<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>svg test</title>
</head>

<body>
    <svg xmlns="http://www.w3.org/2000/svg" style="height: 100%;width:100%" version="1.1" >
        <line x1="0" y1="0" x2="740" y2="15.9" style="stroke:rgb(255,0,0);stroke-width:2" />
    </svg>
</body>
<script>
    // 只考虑rateX和rateY
    // 考虑w h 的最小值为3px
</script>

</html>